//
//  SecondaryClassificationCell.m
//  BaseProject
//
//  Created by 王洋 on 2020/7/20.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "SecondaryClassificationCell.h"

@implementation SecondaryClassificationCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(ProClassificationModel *)model {
    
    self.mainTitleLab.text = model.parentName;
    
    if (model.isSelect) {
        
        self.backgroundColor = [UIColor whiteColor];
        self.mainTitleLab.textColor = UIColorHex(0xff4242);
    } else {
        
        self.backgroundColor = UIColorHex(0xf1f1f1);
        self.mainTitleLab.textColor = UIColorHex(0x666666);
    }
    
    self.tagView.hidden = !model.isSelect;

}

@end
